import {NgModule} from '@angular/core';
import {Routes, RouterModule} from "@angular/router";
import {MatchOrderComponent} from './match-order/match-order.component';
import {MatchFilterComponent} from "./match-filter/match-filter.component";
import {MatchBrandComponent} from "./match-brand/match-brand.component";
import {MatchAdditionalComponent} from "app/pages/match/match-additional/match-additional.component";
import {MatchComponent} from "app/pages/match/match.component";
import {MatchCityComponent} from "app/pages/match/match-city/match-city.component";
import {MatchDetailComponent} from "./match-detail/match-detail.component";
import {RankingDetailComponent} from "./match-detail/ranking/ranking-detail/ranking-detail.component";
import {MatchScoreComponent} from "./match-detail/schedule/match-score/match-score.component";

const routes: Routes = [
  {
    path: '',
    component: MatchComponent,
    data: {
      reusable: true,
      meta: {
        title: '赛事报名平台_赛事活动网站_求苗体育赛事服务平台',
        keywords: '赛事,赛事报名,比赛报名,赛事活动报名,赛事服务,赛事发布',
        description: `求苗体育赛事报名服务管理平台，我们致力于以专业的赛事内容和产品，
        面向体育爱好者、俱乐部、体育机构和赛事组织者的全方位精准服务，打造体育产业链一流的
        互联网体育生态平台，让运动不仅能提升身心健康，更将成为社会运动潮流新标杆。 `,
      },
    }
  },
  {
    path: 'detail/:matchId',
    component: MatchDetailComponent,
  },
  {
    path: 'ranking',
    component: RankingDetailComponent
  },
  {
    path: 'order',
    component: MatchOrderComponent,
  },
  {
    path: 'filter',
    component: MatchFilterComponent,
  },
  {
    path: 'brand',
    component: MatchBrandComponent,
  },
  {
    path: 'city',
    data: {reusable: true},
    component: MatchCityComponent
  },
  {
    path: 'additional',
    component: MatchAdditionalComponent
  }
  , {
    path: 'score',
    component: MatchScoreComponent
  }
];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [RouterModule]
})
export class MatchRoutingModule {
}
